class WebSo {
  testWebsocket() {
    console.log("demo22");
    let ws = new WebSocket("ws://localhost:3000/api/hello"); //node 端不支持，此为浏览器端API
  }
}

let d = new WebSo();
d.testWebsocket();





